* net/dbus.el (dbus-event-error-hooks): Fix docstring. Describe
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 28 Jan 2009 16:10:02 +0000 (16:10 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 28 Jan 2009 16:10:02 +0000 (16:10 +0000)
second parameter of hook functions.
(dbus-handle-event): Apply it.

lisp/net/dbus.el

index 39247b0b62d4e141cb5ef2ee29d119c7fa9a5629..f586a4125debf3aa590d3097c5f0466ebbccedbf 100644 (file)
@@ -99,7 +99,7 @@ Otherwise, return result of last form in BODY, or all other errors."
 
 (defvar dbus-event-error-hooks nil
   "Functions to be called when a D-Bus error happens in the event handler.
-Every function must accept one argument, the error variable
+Every function must accept two arguments, the event and the error variable
 catched in `condition-case' by `dbus-error'.")
 
 \f
@@ -379,7 +379,7 @@ If the HANDLER returns an `dbus-error', it is propagated as return message."
         (dbus-method-error-internal
          (nth 1 event) (nth 3 event) (nth 4 event) (cadr err))))
      ;; Propagate D-Bus error messages.
-     (run-hook-with-args 'dbus-event-error-hooks err)
+     (run-hook-with-args 'dbus-event-error-hooks event err)
      (when (or dbus-debug (= dbus-message-type-error (nth 2 event)))
        (signal (car err) (cdr err))))))